package com.woniuxy.microorderserver.mapper;

import com.github.pagehelper.PageInfo;
import com.woniuxy.microcommonserver.bean.order_caize.OrderInfo;
import com.woniuxy.microcommonserver.bean.order_caize.ShipperInfo;
import com.woniuxy.microcommonserver.pageHelper.PageRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ShipperMapper {
    /**
     * 分页查询所有发货人
     */
    List<ShipperInfo> findShipperAll(@Param("p")PageRequest request);

    /**
     * 删除发货人信息
     */
    int delShipper(@Param("id")Long id);

    /**
     * 新增发货人信息
     */
    int addShipper(@Param("s") ShipperInfo shipperInfo);
}
